<!--
 * @Description:链式运动的局限
 * @Author: Sun
 * @Date: 2019-07-01 20:05:50
 * @LastEditors: Sun
 * @LastEditTime: 2019-07-07 12:12:56
 -->
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>链式运动的局限</title>
	<script src="./move3.js"></script>
	<style>
	 *{margin: 0; padding: 0; overflow: hidden;}
		div {
		width: 100px;
		height: 100px;
		flex: left;
		background: yellow;
		margin: 20px;
		border: 1px solid slateblue;
		opacity: .3;
		}
	</style>
	<script>
		window.onload = function () {
			var oBtn = document.getElementById("btn1")
			var odiv = document.getElementById("div1")

			oBtn.onclick=function(){
				startmove(odiv,{'width':101,'height':300,'opacity':100},function(){
						console.log("nihao")
				})
				// startmove(odiv,'height',300,function(){})
			}
			
			// oBtnClose.onclick=function(){
			// 	startmove(oBox,'bottom',-315,function(){
			// 			oBox.style.display="none"
			// 			startmove(oBottom,'right',-165,function(){
			// 			})
			// 	})
			// }

		}
	</script>
</head>

<body>
	<input id="btn1" type="button" value="运动">	
	<div id="div1"></div>
</body>
   
</html>